/*
 * @Author: AskMeWhy
 * @Date: 2020-06-16 23:41:05
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2021-01-19 15:31:42
 */

$breadcrumb-box-bg: transparent;
$breadcrumb-box-active: #de2728;
$breadcrumb-color: #37383a;
$breadcrumb-transition-duration: 300ms;
$breadcrumb-transition-timing-function: linear;

.ask-breadcrumb-box {
    width: 100%;
    position: relative;
    background-color: $breadcrumb-box-bg;
    @include flexLayout(flex,normal,center);
    .ask-breadcrumb__other{
        flex: 0 0 auto;
        padding-right: .1rem;
    };
    .ask-breadcrumb__other-flex{
        @include flexLayout(flex,normal,center);
        .ask-breadcrumb__other-flex-text{
            font-size: .14rem;
            color: $breadcrumb-color;
            white-space: nowrap;
            padding: 0 .1rem;
        }
    }
    .ask-breadcrumb__list{
        flex: 1;
        width: 100%;
        @include flexLayout(flex,normal,center);
        padding: 0 .26rem 0 0;
        height: .4rem;
        position: relative;
        .ask-breadcrumb__item{
            white-space: nowrap;
            flex: 0 0 auto;
            font-weight: bold;
            font-size: .16rem;
            font-family: "PingFang SC Medium";
            color: #37383a;
            @include flexLayout(flex,normal,center);
            position: relative;
            ::v-deep{
                .ask-breadcrumb__separator{
                    margin-top: .04rem;
                    opacity: 1;
                    color: $breadcrumb-color;
                }
                .ask-breadcrumb__item-text{
                    color: inherit;
                    position: relative;
                    cursor: pointer;
                    font: 14px "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
                    a{
                        color: inherit;
                        font: inherit;
                        cursor: pointer;
                    }
                    &::after{
                        content: "";
                        display: block;
                        width: 100%;
                        height: .02rem;
                        background-color: $breadcrumb-box-active;
                        position: absolute;
                        bottom: -.04rem;
                        left: 0;
                        z-index: 1;
                        pointer-events: none;
                        transform: scale(0);
                        transition-property: transform;
                        transition-duration: $breadcrumb-transition-duration;
                        transition-timing-function: $breadcrumb-transition-timing-function;
                    }
                }
            }
            &:last-of-type{
                ::v-deep{
                    .ask-breadcrumb__separator{
                        opacity: 0;
                    }
                }
            }
            &.is-link{
                color: $breadcrumb-color;
                &:hover{
                    ::v-deep{
                        .ask-breadcrumb__item-text{
                            &::after{
                                transform: scaleX(1);
                            }
                        }
                    }
                }
            }
        }
    }
}
.icon-home_item {
    margin-right: 10px;
    margin-left: 21px;
    .icon-home {
        font-size: 22px;
    }
}
